home *** CD-ROM | disk | FTP | other *** search
/ Celestin Apprentice 7 / Apprentice-Release7.iso / Source Code / Pascal / Snippets / PNL Libraries / Libraries / SpriteWorld / SpriteWorld files / Headers / Scrolling.h < prev    next >
Encoding:
Text File  |  1996-10-29  |  2.3 KB  |  104 lines  |  [TEXT/KAHL]

  1. ///--------------------------------------------------------------------------------------
  2. //    Scrolling.h
  3. //
  4. //    By: Vern Jensen 8/29/95
  5. ///--------------------------------------------------------------------------------------
  6.  
  7.  
  8. #ifndef __SCROLLING__
  9. #define __SCROLLING__
  10.  
  11. #if PRAGMA_ALIGN_SUPPORTED
  12. #pragma options align=mac68k
  13. #endif
  14.  
  15.  
  16.  
  17. ///--------------------------------------------------------------------------------------
  18. //    scrolling function prototypes
  19. ///--------------------------------------------------------------------------------------
  20.  
  21.  
  22. #ifdef __cplusplus
  23. extern "C" {
  24. #endif
  25.  
  26.  
  27. SW_FUNC void SWUpdateScrollingWindow(
  28.     SpriteWorldPtr spriteWorldP);
  29.  
  30. SW_FUNC void SWUpdateScrollingSpriteWorld(
  31.     SpriteWorldPtr spriteWorldP,
  32.     Boolean updateWindow);
  33.  
  34. SW_FUNC void SWProcessScrollingSpriteWorld(
  35.     SpriteWorldPtr spriteWorldP);
  36.  
  37. SW_FUNC void SWAnimateScrollingSpriteWorld(
  38.     SpriteWorldPtr spriteWorldP);
  39.  
  40. SW_FUNC void SWDrawWrappedSprite(
  41.     SpritePtr srcSpriteP,
  42.     FramePtr dstFrameP,
  43.     Rect* srcRect,
  44.     Rect* dstRect);
  45.  
  46. SW_FUNC void SWEraseWrappedSprite(
  47.     SpriteWorldPtr spriteWorldP,
  48.     Rect* dstRect);
  49.  
  50. SW_FUNC void SWWrapWorldToScreen(
  51.     SpriteWorldPtr    spriteWorldP);
  52.  
  53. SW_FUNC void SWCheckWrappedIdleSpriteOverlap(
  54.     SpriteWorldPtr            spriteWorldP,
  55.     register SpritePtr        idleSpriteP,
  56.     SpritePtr                headActiveSpriteP);
  57.  
  58. SW_FUNC void SWRedrawErasedIdleSprites(
  59.     SpriteWorldPtr    spriteWorldP,
  60.     SpritePtr        headActiveSpriteP,
  61.     SpritePtr        headIdleSpriteP);
  62.  
  63. SW_FUNC void SWRedrawIdleSpritesInRect(
  64.     SpriteWorldPtr    spriteWorldP,
  65.     SpritePtr        headIdleSpriteP,
  66.     Rect            *updateRect);
  67.  
  68. SW_FUNC void SWSetScrollingWorldMoveBounds(
  69.     SpriteWorldPtr    spriteWorldP,
  70.     Rect* scrollRectMoveBounds);
  71.  
  72. SW_FUNC void SWSetScrollingWorldMoveProc(
  73.     SpriteWorldPtr spriteWorldP, 
  74.     WorldMoveProcPtr worldMoveProcP, 
  75.     SpritePtr followSpriteP);
  76.  
  77. SW_FUNC void SWSetSpriteWorldScrollDelta(
  78.     SpriteWorldPtr    spriteWorldP,
  79.     short            horizDelta,
  80.     short            vertDelta);
  81.  
  82. SW_FUNC void SWMoveVisScrollRect(
  83.     SpriteWorldPtr    spriteWorldP,
  84.     short            horizPos,
  85.     short            vertPos);
  86.  
  87. SW_FUNC void SWOffsetVisScrollRect(
  88.     SpriteWorldPtr    spriteWorldP,
  89.     short            horizOffset,
  90.     short            vertOffset);
  91.  
  92. SW_FUNC void SWCalculateOffscreenScrollRect(
  93.     SpriteWorldPtr spriteWorldP);
  94.  
  95.  
  96. #ifdef __cplusplus
  97. }
  98. #endif
  99.  
  100. #if PRAGMA_ALIGN_SUPPORTED
  101. #pragma options align=reset
  102. #endif
  103.  
  104. #endif /* __SCROLLING__ */